package com.robcity.platform.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @Description
 * @Author zhangsong
 * @Date 2024/8/10
 **/
@Getter
@AllArgsConstructor
public enum RobotEventTypeEnum {
    CROWDS_GATHER("1", "人群聚集事件");

    private final String code;
   private final String desc;
   public static RobotEventTypeEnum getByCode(String code) {
       for (RobotEventTypeEnum robotEventTypeEnum : RobotEventTypeEnum.values()) {
           if (robotEventTypeEnum.getCode().equals(code)) {
               return robotEventTypeEnum;
           }
       }
       return null;
   }
}
